package com.atguigu.spzx.manager.entity;


import java.util.Date;

import com.atguigu.spzx.common.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠券领用表
 * </p>
 *
 * @author flyduck
 * @since 2023-11-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="CouponUser对象", description="优惠券领用表")
public class CouponUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "购物券ID")
    private Long couponId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "购物券状态（1：未使用 2：已使用）")
    private Integer couponStatus;

    @ApiModelProperty(value = "获取类型（1：后台赠送；2：主动获取）")
    private Integer getType;

    @ApiModelProperty(value = "获取时间")
    private Date getTime;

    @ApiModelProperty(value = "使用时间")
    private Date usingTime;

    @ApiModelProperty(value = "支付时间")
    private Date usedTime;

    @ApiModelProperty(value = "过期时间")
    private Date expireTime;

    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    private Integer isDeleted;


}
